package com.cj.mainmodule.repo.coroutine

import com.cj.mainmodule.bean.BaseRes
import com.cj.mainmodule.bean.ThePublicInfo
import retrofit2.http.GET

/**
 *created by chen jun
 *on 2021/5/25 14:03
 * 结合Coroutine  返回类型是需要的Java bean
 */
interface ServiceInterface {
    companion object{
        const val GET_CHAPTERS_PATH = "/wxarticle/chapters/json"
    }
    @GET(GET_CHAPTERS_PATH)
    suspend fun getChapters(): BaseRes<List<ThePublicInfo>>
}